<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="../common.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Project Infor</title>
	<link href="${ctx}/resources/css/project/project.css" rel="stylesheet">
	<link href="${ctx}/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<link href="${ctx}/resources/css/bootstrap/bootstrap.min.css" rel="stylesheet">
	<script type="text/javascript" src="${ctx}/resources/js/highcharts/jquery-1.8.2.min.js"></script>
	<c:set var="active" value="variables"/>

</head>
<body>
	<div class="container">
		<div class="row">
	    <%@include file="nav.jsp"%>
		<div class="col-md-10">
			<div class="bs-callout help-callout">
				<p>				变量配置.				</p>
			</div>
			<form accept-charset="UTF-8" action="${ctx}/project/saveVar" class="form-horizontal" id="edit_var" method="post">
				<div style="display:none">
				<input name="id" type="hidden" value="${project.id}">
				<input name="totalCommitsCount" type="hidden" value="${project.totalCommitsCount}">
				</div>
				<fieldset>
				<div class="form-group">
					<label class="control-label" for="projName">项目名称</label>
					<div class="col-sm-10">
						<input class="form-control" id="projName" name="projName" type="text" value="${project.projName}">
						<div class="light">当代码提交时，项目名称会自动更新</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label" for="homePage">项目地址</label>
					<div class="col-sm-10">
						<input class="form-control" id="homePage" name="homePage" type="text" value="${project.homePage}">
						<div class="light">项目主页</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label" for="gitSshUrl">GIT地址</label>
					<div class="col-sm-10">
						<input class="form-control" id="gitSshUrl" name="gitSshUrl" type="text" value="${project.gitSshUrl}">
						<div class="light">案例：git@xxxx/xxx.git</div>
					</div>
				</div>
				</fieldset>
			
				<div class="form-actions">
					<input class="btn btn-save" name="commit" type="submit" value="Save changes">
					<a class="btn pull-right" href="${ctx}/project/list">Cancel</a>
				</div>
			</form>
		</div>
</div>
</div>
</body>
</html>
